<template>
  <a-breadcrumb-item :href="href">
    <template v-if="$slots.overlay" #overlay>
      <slot name="overlay" />
    </template>
    <slot />
  </a-breadcrumb-item>
</template>

<script>
import { defineComponent } from 'vue'
import { BreadcrumbItem } from 'ant-design-vue'
export default defineComponent({
  name: 'ZBreadcrumbItem',
  components: {
    ABreadcrumbItem: BreadcrumbItem
  },
  props: {
    href: {
      type: String,
      default: undefined
    }
  }
})
</script>
